﻿@using BastInfos.Helpers

@model BastInfos.Models.Event.EventModel

@{
	ViewBag.Title = Model.Title;
	ViewBag.Alert = @"<p class=""warn"">Cet événement n'est pas en ligne, et n'est visible que par un administrateur du site.</p>";
	ViewBag.Confirm = @"<p id=""spnMessage"" class=""greenMessage"" style=""display:none;"">Votre message a bien &eacute;t&eacute; pris en compte, il sera visible prochainement, apr&egrave;s validation de la r&eacute;daction.</p>";
}

<div id="content">
	@if (Model.ShowAlert) { <text>@ViewBag.Alert</text> }
	<h1><span>@Model.Title</span></h1>
	<br />
	<div class="f_left" style="width:235px;">
		@Html.Calendar().SelectedDate(Model.EventDate).Css("calendar_big cal_sel").ShowMonth(true).ShowYear(true).Render()
	</div>
	<div class="f_left" style="width:240px;">
		@Html.Raw(Model.Summary)
	</div>
	<br class="clear" />
	<br />
	<div>
		@Html.Raw(Model.Content)
	</div>
	<br />
	<div style="text-align:right;"><a name="fb_share" type="button" share_url="@Request.RawUrl">Partager</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>
	<br />
	@Html.Partial("_CommentList", Model.Comments)
	<br />
	@Html.Partial("_AddComment", Model.Comment)
	<br/>
	<a href="#haut">Retour en haut de la page</a>
</div>